package com.baizhi.buff2;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class BufferedWriterDemo {
    public static void main(String[] args) throws IOException {
        FileWriter fw = new FileWriter("./javase_io/b.text");
        BufferedWriter bw = new BufferedWriter(fw);


        bw.write("在这雨巷，我希望逢着一个如丁香般的姑娘");

        //bw.flush(); //冲刷缓冲区

        bw.close();
    }
}
